// pages/func/pull-to-refresh/1/index.js
const { $wx, $http } = getApp()
Page({

    async fetch(){ await $http.pull(null, 'room') },
    
    async refresh(){
       await this.fetch()
    },
    
    onPullDownRefresh() { $wx.refresh(this) }
})